package factory.impl;

import dao.NewsDao;
import dao.impl.NewsDaoMySqlImpl;
import factory.AbstractFactory;

/**
 * 具体工厂负责生产具体的产品
 * mysql工厂，负责创建NewsDaoMysqlImpl对象
 * @version v1.0
 * @Author JieGe
 * @Create 2024-11-30 - 11:03
 */
public class MyqlDaoFactory implements AbstractFactory {

    @Override
    public NewsDao getInstance() {
        return new NewsDaoMySqlImpl();
    }
}
